package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * Description:指标设置开启关闭
 *
 * @author 李杰
 * @version v1.0
 * @date 2019/2/19 14:03
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ReportTargetEnableDTO extends BaseDTO {

    private static final long serialVersionUID = 2606082942127580223L;
    /**
     * 启用/关闭
     */
    @DecimalMin(value = "0", message = "{dto.msg.reportTargetEnable.enable.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.reportTargetEnable.enable.DecimalMax}")
    @NotNull(message = "{dto.msg.reportTargetEnable.enable.NotNull}")
    private Integer enable;
    /**
     * 设置项code
     */
    private Integer code;
}
